<template>
{{ list }}

</template>
<script setup>
import { getCurrentInstance,ref } from 'vue';
const list = ref([])
const {proxy} = getCurrentInstance();
proxy.$axios({
    url:'/mock/getgoods',
    method:'get',
}).then(res=>{
    console.log(res);
    list.value = res.data.data

}).catch(error=>{
    console.log(error);
})

</script>